package com.scf.fruit.user;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author : 孙超飞
 * @title :收货地址
 * @description :
 * @date : 2018-04-18 14:25
 */
@Entity
@Table(name = "receive_message_address")
public class ReceiveMessageAddressDto {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Long id;
    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;
    /**
     * 地址
     */
    @Column(name = "address")
    private String address;
    /**
     * 真是姓名
     */
    @Column(name = "real_name")
    private String realName;
    /**
     * 手机号
     */
    @Column(name = "mobile")
    private String mobile;
    /**
     * 是否默认
     */
    @Column(name = "is_default")
    private Integer isDefault;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 删除时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "delete_time")
    private Date deleteTime;
    /**
     * 删除标志
     */
    @Column(name = "delete_flag")
    private Integer deleteFlag;

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
}
